package org.jumiz.dbview.config;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class R {

    public static Response success(Object data) {
        return new Response(1, "success", data);
    }

    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    @Data
    public static class Response {
        private Integer code;
        private String mesg;
        private Object data;

    }
}
